.class public Lcom/example/m6wmr/AskActivity;
.super Landroid/app/Activity;
.source "AskActivity.java"


# static fields
.field public static address:Lcom/example/m6wmr/AskActivity;


# instance fields
.field addresslaout:Landroid/widget/LinearLayout;

.field private addressls:Ljava/util/List;
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "Ljava/util/List",
            "<",
            "Lbean/AddressBean;",
            ">;"
        }
    .end annotation
.end field

.field private areaid:Ljava/lang/String;

.field private cursor:Landroid/database/Cursor;

.field private cv:Landroid/content/ContentValues;

.field private db:Landroid/database/sqlite/SQLiteDatabase;

.field private editid:I

.field private goint:I

.field private goodsstr:Ljava/lang/String;

.field public h:Landroid/os/Handler;

.field private helper:Ldbclass/DBOpenHelper;

.field private loaddata:Z

.field loginview:Landroid/view/View;

.field m:Lmyapp/MyApp;

.field private mHandler:Landroid/os/Handler;

.field private mWebView:Landroid/webkit/WebView;

.field private mcontext:Landroid/content/Context;

.field pd:Landroid/app/ProgressDialog;

.field private pingstr:Ljava/lang/String;

.field registerview:Landroid/view/View;

.field private shopid:Ljava/lang/String;

.field shoplayout:Landroid/widget/LinearLayout;

.field private shopstr:Ljava/lang/String;


# direct methods
.method public constructor <init>()V
    .locals 3

    .prologue
    const/4 v2, 0x0

    const/4 v1, 0x0

    .line 53
    invoke-direct {p0}, Landroid/app/Activity;-><init>()V

    .line 54
    const-string v0, ""

    iput-object v0, p0, Lcom/example/m6wmr/AskActivity;->areaid:Ljava/lang/String;

    .line 55
    iput-object v1, p0, Lcom/example/m6wmr/AskActivity;->m:Lmyapp/MyApp;

    .line 58
    iput-object v1, p0, Lcom/example/m6wmr/AskActivity;->h:Landroid/os/Handler;

    .line 60
    iput-object v1, p0, Lcom/example/m6wmr/AskActivity;->shoplayout:Landroid/widget/LinearLayout;

    .line 61
    new-instance v0, Landroid/os/Handler;

    invoke-direct {v0}, Landroid/os/Handler;-><init>()V

    iput-object v0, p0, Lcom/example/m6wmr/AskActivity;->mHandler:Landroid/os/Handler;

    .line 62
    iput-object v1, p0, Lcom/example/m6wmr/AskActivity;->pd:Landroid/app/ProgressDialog;

    .line 63
    iput-boolean v2, p0, Lcom/example/m6wmr/AskActivity;->loaddata:Z

    .line 64
    const-string v0, "0"

    iput-object v0, p0, Lcom/example/m6wmr/AskActivity;->shopid:Ljava/lang/String;

    .line 65
    iput-object v1, p0, Lcom/example/m6wmr/AskActivity;->goodsstr:Ljava/lang/String;

    .line 68
    iput-object v1, p0, Lcom/example/m6wmr/AskActivity;->cursor:Landroid/database/Cursor;

    .line 71
    const-string v0, ""

    iput-object v0, p0, Lcom/example/m6wmr/AskActivity;->shopstr:Ljava/lang/String;

    .line 72
    const-string v0, ""

    iput-object v0, p0, Lcom/example/m6wmr/AskActivity;->pingstr:Ljava/lang/String;

    .line 73
    iput v2, p0, Lcom/example/m6wmr/AskActivity;->goint:I

    .line 75
    iput v2, p0, Lcom/example/m6wmr/AskActivity;->editid:I

    .line 53
    return-void
.end method

.method static synthetic access$0(Lcom/example/m6wmr/AskActivity;)Landroid/content/Context;
    .locals 1

    .prologue
    .line 57
    iget-object v0, p0, Lcom/example/m6wmr/AskActivity;->mcontext:Landroid/content/Context;

    return-object v0
.end method

.method static synthetic access$1(Lcom/example/m6wmr/AskActivity;)V
    .locals 0

    .prologue
    .line 146
    invoke-direct {p0}, Lcom/example/m6wmr/AskActivity;->saveask()V

    return-void
.end method

.method private saveask()V
    .locals 1

    .prologue
    .line 148
    new-instance v0, Lcom/example/m6wmr/AskActivity$4;

    invoke-direct {v0, p0}, Lcom/example/m6wmr/AskActivity$4;-><init>(Lcom/example/m6wmr/AskActivity;)V

    .line 208
    invoke-virtual {v0}, Lcom/example/m6wmr/AskActivity$4;->start()V

    .line 209
    return-void
.end method


# virtual methods
.method public bindbtn()V
    .locals 3

    .prologue
    .line 128
    const v2, 0x7f0c0001

    invoke-virtual {p0, v2}, Lcom/example/m6wmr/AskActivity;->findViewById(I)Landroid/view/View;

    move-result-object v0

    check-cast v0, Landroid/widget/LinearLayout;

    .line 129
    .local v0, "closebtn":Landroid/widget/LinearLayout;
    new-instance v2, Lcom/example/m6wmr/AskActivity$2;

    invoke-direct {v2, p0}, Lcom/example/m6wmr/AskActivity$2;-><init>(Lcom/example/m6wmr/AskActivity;)V

    invoke-virtual {v0, v2}, Landroid/widget/LinearLayout;->setOnClickListener(Landroid/view/View$OnClickListener;)V

    .line 135
    const v2, 0x7f0c001f

    invoke-virtual {p0, v2}, Lcom/example/m6wmr/AskActivity;->findViewById(I)Landroid/view/View;

    move-result-object v1

    check-cast v1, Landroid/widget/TextView;

    .line 136
    .local v1, "submitaskbtn":Landroid/widget/TextView;
    new-instance v2, Lcom/example/m6wmr/AskActivity$3;

    invoke-direct {v2, p0}, Lcom/example/m6wmr/AskActivity$3;-><init>(Lcom/example/m6wmr/AskActivity;)V

    invoke-virtual {v1, v2}, Landroid/widget/TextView;->setOnClickListener(Landroid/view/View$OnClickListener;)V

    .line 143
    return-void
.end method

.method protected onCreate(Landroid/os/Bundle;)V
    .locals 5
    .param p1, "savedInstanceState"    # Landroid/os/Bundle;

    .prologue
    .line 80
    invoke-super {p0, p1}, Landroid/app/Activity;->onCreate(Landroid/os/Bundle;)V

    .line 81
    const v3, 0x7f030008

    invoke-virtual {p0, v3}, Lcom/example/m6wmr/AskActivity;->setContentView(I)V

    .line 83
    invoke-virtual {p0}, Lcom/example/m6wmr/AskActivity;->getApplicationContext()Landroid/content/Context;

    move-result-object v3

    check-cast v3, Lmyapp/MyApp;

    iput-object v3, p0, Lcom/example/m6wmr/AskActivity;->m:Lmyapp/MyApp;

    .line 84
    iget-object v3, p0, Lcom/example/m6wmr/AskActivity;->m:Lmyapp/MyApp;

    invoke-virtual {v3}, Lmyapp/MyApp;->getActivity()Ljava/util/ArrayList;

    move-result-object v0

    .line 85
    .local v0, "activityList":Ljava/util/ArrayList;, "Ljava/util/ArrayList<Landroid/app/Activity;>;"
    invoke-virtual {v0, p0}, Ljava/util/ArrayList;->add(Ljava/lang/Object;)Z

    .line 86
    iput-object p0, p0, Lcom/example/m6wmr/AskActivity;->mcontext:Landroid/content/Context;

    .line 87
    sput-object p0, Lcom/example/m6wmr/AskActivity;->address:Lcom/example/m6wmr/AskActivity;

    .line 89
    const/high16 v3, 0x7f0c0000

    invoke-virtual {p0, v3}, Lcom/example/m6wmr/AskActivity;->findViewById(I)Landroid/view/View;

    move-result-object v2

    check-cast v2, Landroid/widget/LinearLayout;

    .line 90
    .local v2, "top":Landroid/widget/LinearLayout;
    iget-object v3, p0, Lcom/example/m6wmr/AskActivity;->m:Lmyapp/MyApp;

    invoke-virtual {v3}, Lmyapp/MyApp;->getAppcolor()Ljava/lang/String;

    move-result-object v3

    const-string v4, "1"

    invoke-virtual {v3, v4}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result v3

    if-eqz v3, :cond_0

    .line 91
    const v3, 0x7f070026

    invoke-virtual {v2, v3}, Landroid/widget/LinearLayout;->setBackgroundResource(I)V

    .line 93
    :cond_0
    new-instance v3, Ljava/util/ArrayList;

    invoke-direct {v3}, Ljava/util/ArrayList;-><init>()V

    iput-object v3, p0, Lcom/example/m6wmr/AskActivity;->addressls:Ljava/util/List;

    .line 95
    invoke-virtual {p0}, Lcom/example/m6wmr/AskActivity;->getIntent()Landroid/content/Intent;

    move-result-object v1

    .line 96
    .local v1, "intent":Landroid/content/Intent;
    const-string v3, "shopid"

    invoke-virtual {v1, v3}, Landroid/content/Intent;->getStringExtra(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v3

    iput-object v3, p0, Lcom/example/m6wmr/AskActivity;->shopid:Ljava/lang/String;

    .line 98
    new-instance v3, Ldbclass/DBOpenHelper;

    iget-object v4, p0, Lcom/example/m6wmr/AskActivity;->mcontext:Landroid/content/Context;

    invoke-direct {v3, v4}, Ldbclass/DBOpenHelper;-><init>(Landroid/content/Context;)V

    iput-object v3, p0, Lcom/example/m6wmr/AskActivity;->helper:Ldbclass/DBOpenHelper;

    .line 99
    iget-object v3, p0, Lcom/example/m6wmr/AskActivity;->helper:Ldbclass/DBOpenHelper;

    invoke-virtual {v3}, Ldbclass/DBOpenHelper;->getWritableDatabase()Landroid/database/sqlite/SQLiteDatabase;

    move-result-object v3

    iput-object v3, p0, Lcom/example/m6wmr/AskActivity;->db:Landroid/database/sqlite/SQLiteDatabase;

    .line 100
    new-instance v3, Landroid/content/ContentValues;

    invoke-direct {v3}, Landroid/content/ContentValues;-><init>()V

    iput-object v3, p0, Lcom/example/m6wmr/AskActivity;->cv:Landroid/content/ContentValues;

    .line 101
    const v3, 0x7f0c00ca

    invoke-virtual {p0, v3}, Lcom/example/m6wmr/AskActivity;->findViewById(I)Landroid/view/View;

    move-result-object v3

    check-cast v3, Landroid/widget/LinearLayout;

    iput-object v3, p0, Lcom/example/m6wmr/AskActivity;->addresslaout:Landroid/widget/LinearLayout;

    .line 102
    new-instance v3, Lcom/example/m6wmr/AskActivity$1;

    invoke-direct {v3, p0}, Lcom/example/m6wmr/AskActivity$1;-><init>(Lcom/example/m6wmr/AskActivity;)V

    iput-object v3, p0, Lcom/example/m6wmr/AskActivity;->h:Landroid/os/Handler;

    .line 125
    invoke-virtual {p0}, Lcom/example/m6wmr/AskActivity;->bindbtn()V

    .line 126
    return-void
.end method

.method protected onDestroy()V
    .locals 1

    .prologue
    .line 231
    invoke-super {p0}, Landroid/app/Activity;->onDestroy()V

    .line 232
    iget-object v0, p0, Lcom/example/m6wmr/AskActivity;->db:Landroid/database/sqlite/SQLiteDatabase;

    if-eqz v0, :cond_0

    .line 233
    iget-object v0, p0, Lcom/example/m6wmr/AskActivity;->db:Landroid/database/sqlite/SQLiteDatabase;

    invoke-virtual {v0}, Landroid/database/sqlite/SQLiteDatabase;->close()V

    .line 235
    :cond_0
    iget-object v0, p0, Lcom/example/m6wmr/AskActivity;->cursor:Landroid/database/Cursor;

    if-eqz v0, :cond_1

    .line 236
    iget-object v0, p0, Lcom/example/m6wmr/AskActivity;->cursor:Landroid/database/Cursor;

    invoke-interface {v0}, Landroid/database/Cursor;->close()V

    .line 238
    :cond_1
    return-void
.end method

.method public onKeyDown(ILandroid/view/KeyEvent;)Z
    .locals 2
    .param p1, "keyCode"    # I
    .param p2, "event"    # Landroid/view/KeyEvent;

    .prologue
    const/4 v1, 0x0

    .line 222
    const/4 v0, 0x4

    if-ne p1, v0, :cond_0

    invoke-virtual {p2}, Landroid/view/KeyEvent;->getRepeatCount()I

    move-result v0

    if-nez v0, :cond_0

    .line 223
    invoke-virtual {p0}, Lcom/example/m6wmr/AskActivity;->finish()V

    .line 226
    :cond_0
    return v1
.end method

.method public onStart()V
    .locals 0

    .prologue
    .line 217
    invoke-super {p0}, Landroid/app/Activity;->onStart()V

    .line 218
    return-void
.end method
